<template>
  <div>
    <p :style="{ color: colorStr }">:style,value值赋予给css属性名</p>
  </div>
</template>

<script>
export default {
  data() {
    return (color = "red");
  },
};
</script>

<style>
</style>